const mongoose = require('mongoose');
let AccountSchema = new mongoose.Schema({
    title:{
        type: String,
        required:true,
    },
    time:String,
    type:{
        type:Number,
        default:-1,
    },
    account:{
        type:Number,
        required:true,
    },
    u_id:mongoose.Schema.Types.ObjectId,
    remarks:{
        type:String,
    }
});
// 创建模型对象、对文档操作的封装对象
let AccountModel = mongoose.model('accounts', AccountSchema);
module.exports = AccountModel;